﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace prototype123
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void StudentMenuItem_Click(object sender, EventArgs e)
        {
            this.toolStripCurrentStudent.Text = "Current Student: " + sender.ToString();
        }

        private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            lblCourseName.Text = listBox1.SelectedItem.ToString() + " Assignments:";
        }

        private void endTermToolStripMenuItem_Click(object sender, EventArgs e)
        {
            // Configure the message box to be displayed
            //string messageBoxText = "Do you want to end the term?";
            //string caption = "End Term";
            //MessageBoxButtons button1 = MessageBoxButtons.YesNo;
            //MessageBoxIcon icon = MessageBoxIcon.Warning;
            //MessageBox.Show(messageBoxText, caption, button1, icon);

            Form2 frm = new Form2();
            frm.Show();
            //frm.Activate();
        
        }

        private void button2_Click(object sender, EventArgs e)
        {
            // Configure the message box to be displayed
            string messageBoxText = "Do you want to delete this assignment?";
            string caption = "Delete Assignment";

            MessageBoxButtons button1 = MessageBoxButtons.YesNo;
            MessageBoxIcon icon = MessageBoxIcon.Warning;
            MessageBox.Show(messageBoxText, caption, button1, icon);
        }

        private void addCourseToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }

        private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {

        }

        private void button5_Click(object sender, EventArgs e)
        {
            // Configure the message box to be displayed
            string messageBoxText = "Do you want to delete this course along with all its assignments?";
            string caption = "Delete Course";
            MessageBoxButtons button1 = MessageBoxButtons.YesNo;
            MessageBoxIcon icon = MessageBoxIcon.Warning;
            MessageBox.Show(messageBoxText, caption, button1, icon);
        }

        private void comboBox2_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void panel4_Paint(object sender, PaintEventArgs e)
        {

        }

        private void button7_Click(object sender, EventArgs e)
        {

        }


    }
}
